/**
 * @project readnote
 * @Title BookService.java
 * @author huxh
 * @date 2012-2-12
 **/
package com.readnote.book.service;

import java.util.List;

import com.cr.backbone.hibenate.AppBaseService;
import com.readnote.book.model.Book;
import com.readnote.book.model.UserBook;
import com.readnote.book.model.UserNote;
import com.readnote.user.model.User;

public interface UserNoteService extends AppBaseService<UserNote> {

	
	/**
	 * 添加笔记
	 * @param userNote
	 * @return
	 */
	public Long saveAddUserNote(UserNote userNote);
	
	/**
	 * 更新读书笔记信息
	 * @param userNote
	 * @return
	 */
	public Long updateUserNote(UserNote userNote);
	
	
	/**
	 * 获取用户笔记集合，by用户书籍
	 * @param userBook
	 * @return
	 */
	public List<UserNote> getListUserNoteByUserBook(UserBook userBook);


	/**
	 * 获取用户笔记，by用户
	 * @param user
	 * @return
	 */
	public List<UserNote> getListUserNoteByUser(User user);

	/**
	 * 获取用户最后添加笔记
	 * @param user
	 * @return
	 * @author huxh
	 * @date 2012-7-5 
	 */
	public UserNote getUserNoteTopOneByUser(User user);
	
	
}
